<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<%--银行账户页面--%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <base href="<%=basePath %>"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <style type="text/css">
        <!--
        body {
            margin-left: 0px;
            margin-top: 0px;
            margin-right: 0px;
            margin-bottom: 0px;
        }

        .tabfont01 {
            font-family: "宋体";
            font-size: 9px;
            color: #555555;
            text-decoration: none;
            text-align: center;
        }

        .font051 {
            font-family: "宋体";
            font-size: 12px;
            color: #333333;
            text-decoration: none;
            line-height: 20px;
        }

        .font201 {
            font-family: "宋体";
            font-size: 12px;
            color: #FF0000;
            text-decoration: none;
        }

        .button {
            font-family: "宋体";
            font-size: 14px;
            height: 37px;
        }

        html {
            overflow-x: auto;
            overflow-y: auto;
            border: 0;
        }

        -->
    </style>

    <link href="css/css.css" rel="stylesheet" type="text/css"/>
    <script type="text/JavaScript">

    </script>
    <link href="css/style.css" rel="stylesheet" type="text/css"/>
</head>
<SCRIPT language=JavaScript>
    function sousuo() {
        window.open("gaojisousuo.htm", "", "depended=0,alwaysRaised=1,width=800,height=510,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0");
    }

    function selectAll() {
        var obj = document.fom.elements;
        for (var i = 0; i < obj.length; i++) {
            if (obj[i].name == "delid") {
                obj[i].checked = true;
            }
        }
    }

    function unselectAll() {
        var obj = document.fom.elements;
        for (var i = 0; i < obj.length; i++) {
            if (obj[i].name == "delid") {
                if (obj[i].checked == true) obj[i].checked = false;
                else obj[i].checked = true;
            }
        }
    }

    function link() {
        document.getElementById("fom").action = "yuangong.htm";
        document.getElementById("fom").submit();
    }
</SCRIPT>

<body>

<table width="100%" border="0" cellspacing="0" cellpadding="0">

    <tr>
        <td>
            <table id="subtree1" width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td>
                        <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr>
                                <td height="40" class="font42">
                                    <table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#464646"
                                           class="newfont03">

                                        <tr>
                                            <td height="20" colspan="15" align="center" bgcolor="#EEEEEE"
                                                class="tablestyle_title" style="text-align: center;">
                                               账户列表
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="6%" align="center" bgcolor="#EEEEEE">选择</td>
                                            <td width="7%" align="center" bgcolor="#EEEEEE">银行卡号</td>
                                            <td width="9%" height="20" align="center" bgcolor="#EEEEEE">余额</td>
                                            <td width="7%" align="center" bgcolor="#EEEEEE">用户</td>
                                            <td width="9%" align="center" bgcolor="#EEEEEE">操作</td>
                                        </tr>
                                        <c:if test="${bankList.size()==0}">
                                            <tr>
                                                <td bgcolor="#FFFFFF" colspan="11">
                                                    当前没有信息
                                                </td>
                                            </tr>

                                        </c:if>
                                        <c:if test="${bankList.size()!=0}">
                                            <c:forEach items="${bankList }" var="tc">
                                                <tr>
                                                    <td bgcolor="#FFFFFF"><input type="checkbox" name="delid"/></td>
                                                        <%--<td height="20" bgcolor="#FFFFFF">${tc.bid }</td>--%>
                                                    <td bgcolor="#FFFFFF">${tc.bname }</td>
                                                    <td bgcolor="#FFFFFF">${tc.bmoney }</td>
                                                    <td bgcolor="#FFFFFF">${tc.familyMember.name }</td>
                                                    <td bgcolor="#FFFFFF">
                                                        <a href="/ffms/DeleteBankServlet?id=${tc.bid}">删除</a>
                                                        &nbsp;|&nbsp;
                                                        <a href="/ffms/PreUpdateBankServlet?id=${tc.bid}">修改</a>
                                                    </td>
                                                </tr>

                                            </c:forEach>

                                        </c:if>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>

            </table>

        </td>
    </tr>
</table>

</body>

</html>
